package com.fcscs.cservice.ws.client.commonservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.commonservice.GetFileRequest;
import com.fcscs.cservice.ws.schema.commonservice.GetFileResponse;

public class GetFileClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(GetFileClient.class);

	public GetFileResponse getFile(GetFileRequest req) {
		GetFileResponse resp = (GetFileResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv file is null " + resp.getFile() == null);
		return resp;
	}
}
